package com.david.entity;

import lombok.Data;

import javax.validation.constraints.*;

/**
 * @author David
 */
@Data
public class Employee {

    private Integer id;

    @Size(min = 1, max = 10, message = "名字输入长度不合法！")
    private String name;

    private String gender;

    @Size(min = 11, max = 11, message = "输入的手机号码格式不正确")
    private String phone;

    @NotEmpty(message = "请输入籍贯")
    private String nativePlace;

    @Email(message = "请输入正确的邮箱格式")
    private String email;

    private String beginDate;

}
